import request from '@/utils/request'

// 查询积分抽奖记录列表
export function listLotteryRecord(query) {
  return request({
    url: '/applet/lotteryRecord/list',
    method: 'get',
    params: query
  })
}

// 查询积分抽奖记录详细
export function getLotteryRecord(id) {
  return request({
    url: '/applet/lotteryRecord/' + id,
    method: 'get'
  })
}

// 新增积分抽奖记录
export function addLotteryRecord(data) {
  return request({
    url: '/applet/lotteryRecord',
    method: 'post',
    data: data
  })
}

// 修改积分抽奖记录
export function updateLotteryRecord(data) {
  return request({
    url: '/applet/lotteryRecord',
    method: 'put',
    data: data
  })
}

// 删除积分抽奖记录
export function delLotteryRecord(id) {
  return request({
    url: '/applet/lotteryRecord/' + id,
    method: 'delete'
  })
}
